package main

import (
	"fmt"
)

func testArray() {
	var a = [5]int{1, 2, 3, 4, 5}
	fmt.Println(a)

	var a1 = [...]int{38, 283, 48, 38, 348, 387, 484}
	fmt.Println(a1)

	var a2 = [...]int{1: 100, 2: 300, 6: 1}
	fmt.Println(a2)

	var a3 = [...]string{1: "hello", 2: "world"}
	fmt.Println(a3)
}

func testArray2()  {
	var a = [2][5]int{{1,2,3,4,5},{6,7,8,9,10}}

	for row,v := range a {
		for col,v2 := range v{
			fmt.Printf("row:%d,col:%d value:%d\n",row,col,v2)
		}
	}
}

func fab(n int)  {
	a := make([]uint64,n)

	a[0] = 1
	a[1] = 1
	for i:=2;i<n;i++{
		a[i] = a[i-1]+a[i-2]
	}

	for _,v := range a{
		fmt.Println(v)
	}
}
func main() {
	//testArray()
	//testArray2()
	fab(70)
}
